<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<meta name="theme-color" content="#222"><meta name="generator" content="Hexo 6.2.0">


  <link rel="apple-touch-icon" sizes="180x180" href="https://www.wulihub.com.cn/gc/Wez0VG/images/apple-touch-icon.png">
  <link rel="icon" type="image/png" sizes="32x32" href="https://www.wulihub.com.cn/gc/Wez0VG/images/favicon-32x32.png">
  <link rel="icon" type="image/png" sizes="16x16" href="https://www.wulihub.com.cn/gc/Wez0VG/images/favicon-16x16.png">
  <link rel="mask-icon" href="https://www.wulihub.com.cn/gc/Wez0VG/images/logo.svg" color="#222">

<link rel="stylesheet" href="https://www.wulihub.com.cn/gc/Wez0VG/css/main.css">



<link rel="stylesheet" href="https://npm.elemecdn.com/@fortawesome/fontawesome-free@6.1.1/css/all.min.css" integrity="sha256-DfWjNxDkM94fVBWx1H5BMMp0Zq7luBlV8QRcSES7s+0=" crossorigin="anonymous">
  <link rel="stylesheet" href="https://npm.elemecdn.com/animate.css@3.1.1/animate.min.css" integrity="sha256-PR7ttpcvz8qrF57fur/yAx1qXMFJeJFiA6pSzWi0OIE=" crossorigin="anonymous">

<script class="next-config" data-name="main" type="application/json">{"hostname":"nobige.cn","root":"/","images":"https://www.wulihub.com.cn/gc/Wez0VG/images","scheme":"Gemini","darkmode":false,"version":"8.12.2","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12},"copycode":{"enable":false,"style":null},"bookmark":{"enable":false,"color":"#222","save":"auto"},"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"stickytabs":false,"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"fadeInDown","post_body":"fadeInDown","coll_header":"fadeInLeft","sidebar":"fadeInUp"}},"prism":false,"i18n":{"placeholder":"Searching...","empty":"We didn't find any results for the search: ${query}","hits_time":"${hits} results found in ${time} ms","hits":"${hits} results found"},"path":"/search.xml","localsearch":{"enable":true,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false}}</script><script src="https://www.wulihub.com.cn/gc/Wez0VG/js/config.js"></script>

    <meta name="description" content="借口​	那是一个夜黑风高的晚上，楼主正在整理东芝2T硬盘，在一个角落里发现一个小小的视频，点击一看映入眼前的是图1，后面就是看了会让人赤面耳红的画面，嗯哼！“澳门首家线上赌场上线啦！@#￥%……&amp;”，接着就是这次文章的主要角色，@#￥%论坛（宣传画面上的链接）  注意为了不必要的麻烦，本文中所有文字和图片及链接都经过处理，但保持原网站的结构 为了不必要的麻烦，本文中所有文字和图片及链接都">
<meta property="og:type" content="article">
<meta property="og:title" content="python爬取澳门第一赌场赞助视频网站">
<meta property="og:url" content="https://nobige.cn/post/20190718-pythonpaquaomendiyiduchangzanzhushipinwangzhan/index.html">
<meta property="og:site_name" content="NoBige-JackCh3n">
<meta property="og:description" content="借口​	那是一个夜黑风高的晚上，楼主正在整理东芝2T硬盘，在一个角落里发现一个小小的视频，点击一看映入眼前的是图1，后面就是看了会让人赤面耳红的画面，嗯哼！“澳门首家线上赌场上线啦！@#￥%……&amp;”，接着就是这次文章的主要角色，@#￥%论坛（宣传画面上的链接）  注意为了不必要的麻烦，本文中所有文字和图片及链接都经过处理，但保持原网站的结构 为了不必要的麻烦，本文中所有文字和图片及链接都">
<meta property="og:locale" content="en_US">
<meta property="og:image" content="https://blog-static.nobige.cn/gh/JackCh3n/n0bige/post/20190718-pythonpaquaomendiyiduchangzanzhushipinwangzhan/aomen.jpg">
<meta property="og:image" content="https://blog-static.nobige.cn/gh/JackCh3n/n0bige/post/20190718-pythonpaquaomendiyiduchangzanzhushipinwangzhan/fbi.jpg">
<meta property="og:image" content="https://blog-static.nobige.cn/gh/JackCh3n/n0bige/post/20190718-pythonpaquaomendiyiduchangzanzhushipinwangzhan/xiao2019-07-18-11-17-00-652.jpg">
<meta property="og:image" content="https://blog-static.nobige.cn/gh/JackCh3n/n0bige/post/20190718-pythonpaquaomendiyiduchangzanzhushipinwangzhan/xiao2019-07-18-11-16-28-50.jpg">
<meta property="og:image" content="https://blog-static.nobige.cn/gh/JackCh3n/n0bige/post/20190718-pythonpaquaomendiyiduchangzanzhushipinwangzhan/xiao2019-07-18-11-18-35-110.jpg">
<meta property="og:image" content="https://blog-static.nobige.cn/gh/JackCh3n/n0bige/post/20190718-pythonpaquaomendiyiduchangzanzhushipinwangzhan/xiao2019-07-18-11-20-49-711.jpg">
<meta property="og:image" content="https://blog-static.nobige.cn/gh/JackCh3n/n0bige/post/20190718-pythonpaquaomendiyiduchangzanzhushipinwangzhan/xiao2019-07-18-13-07-54-266.jpg">
<meta property="og:image" content="https://blog-static.nobige.cn/gh/JackCh3n/n0bige/post/20190718-pythonpaquaomendiyiduchangzanzhushipinwangzhan/xiao2019-07-18-11-31-36-69.jpg">
<meta property="og:image" content="https://blog-static.nobige.cn/gh/JackCh3n/n0bige/post/20190718-pythonpaquaomendiyiduchangzanzhushipinwangzhan/xiao2019-07-18-11-36-03-575.jpg">
<meta property="og:image" content="https://blog-static.nobige.cn/gh/JackCh3n/n0bige/post/20190718-pythonpaquaomendiyiduchangzanzhushipinwangzhan/xiao2019-07-18-11-40-41-972.jpg">
<meta property="og:image" content="https://blog-static.nobige.cn/gh/JackCh3n/n0bige/post/20190718-pythonpaquaomendiyiduchangzanzhushipinwangzhan/xiao2019-07-18-13-16-20-818.jpg">
<meta property="og:image" content="https://blog-static.nobige.cn/gh/JackCh3n/n0bige/post/20190718-pythonpaquaomendiyiduchangzanzhushipinwangzhan/xiao2019-07-18-13-50-03-873.jpg">
<meta property="article:published_time" content="2019-07-18T03:37:08.000Z">
<meta property="article:modified_time" content="2024-11-07T02:59:06.254Z">
<meta property="article:author" content="JackCh3n">
<meta property="article:tag" content="编码">
<meta property="article:tag" content="爬虫">
<meta property="article:tag" content="赌场">
<meta property="article:tag" content="岛国">
<meta property="article:tag" content="动作片">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://blog-static.nobige.cn/gh/JackCh3n/n0bige/post/20190718-pythonpaquaomendiyiduchangzanzhushipinwangzhan/aomen.jpg">


<link rel="canonical" href="https://nobige.cn/post/20190718-pythonpaquaomendiyiduchangzanzhushipinwangzhan/">



<script class="next-config" data-name="page" type="application/json">{"sidebar":"","isHome":false,"isPost":true,"lang":"en","comments":true,"permalink":"https://nobige.cn/post/20190718-pythonpaquaomendiyiduchangzanzhushipinwangzhan/","path":"post/20190718-pythonpaquaomendiyiduchangzanzhushipinwangzhan/","title":"python爬取澳门第一赌场赞助视频网站"}</script>

<script class="next-config" data-name="calendar" type="application/json">""</script>
<title>python爬取澳门第一赌场赞助视频网站 | NoBige-JackCh3n</title>
  
  <script class="next-config" data-name="google_analytics" type="application/json">{"tracking_id":"UA-122817633-1","only_pageview":true}</script>
  <script src="https://www.wulihub.com.cn/gc/Wez0VG/js/third-party/analytics/google-analytics.js"></script>

  <script src="https://www.wulihub.com.cn/gc/Wez0VG/js/third-party/analytics/baidu-analytics.js"></script>
  <script async src="https://hm.baidu.com/hm.js?96741f92c07d010c0ddd1d02197893e2"></script>




  <noscript>
    <link rel="stylesheet" href="https://www.wulihub.com.cn/gc/Wez0VG/css/noscript.css">
  </noscript>
</head>

<body itemscope itemtype="http://schema.org/WebPage" class="use-motion">
  <div class="headband"></div>

  <main class="main">
    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="Toggle navigation bar" role="button">
        <span class="toggle-line"></span>
        <span class="toggle-line"></span>
        <span class="toggle-line"></span>
    </div>
  </div>

  <div class="site-meta">

    <a href="/" class="brand" rel="start">
      <i class="logo-line"></i>
      <p class="site-title">NoBige-JackCh3n</p>
      <i class="logo-line"></i>
    </a>
      <p class="site-subtitle" itemprop="description">copy to my blog</p>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger">
        <i class="fa fa-search fa-fw fa-lg"></i>
    </div>
  </div>
</div>



<nav class="site-nav">
  <ul class="main-menu menu"><li class="menu-item menu-item-home"><a href="/" rel="section"><i class="home fa-fw"></i>Home</a></li><li class="menu-item menu-item-about"><a href="/about/" rel="section"><i class="user fa-fw"></i>About</a></li><li class="menu-item menu-item-tags"><a href="/tags/" rel="section"><i class="tags fa-fw"></i>Tags</a></li><li class="menu-item menu-item-categories"><a href="/categories/" rel="section"><i class="th fa-fw"></i>Categories</a></li><li class="menu-item menu-item-archives"><a href="/archives/" rel="section"><i class="archive fa-fw"></i>Archives</a></li><li class="menu-item menu-item-sitemap"><a href="/sitemap.xml" rel="section"><i class="sitemap fa-fw"></i>Sitemap</a></li>
      <li class="menu-item menu-item-search">
        <a role="button" class="popup-trigger"><i class="fa fa-search fa-fw"></i>Search
        </a>
      </li>
  </ul>
</nav>



  <div class="search-pop-overlay">
    <div class="popup search-popup"><div class="search-header">
  <span class="search-icon">
    <i class="fa fa-search"></i>
  </span>
  <div class="search-input-container">
    <input autocomplete="off" autocapitalize="off" maxlength="80"
           placeholder="Searching..." spellcheck="false"
           type="search" class="search-input">
  </div>
  <span class="popup-btn-close" role="button">
    <i class="fa fa-times-circle"></i>
  </span>
</div>
<div class="search-result-container no-result">
  <div class="search-result-icon">
    <i class="fa fa-spinner fa-pulse fa-5x"></i>
  </div>
</div>

    </div>
  </div>

</div>
        
  
  <div class="toggle sidebar-toggle" role="button">
    <span class="toggle-line"></span>
    <span class="toggle-line"></span>
    <span class="toggle-line"></span>
  </div>

  <aside class="sidebar">

    <div class="sidebar-inner sidebar-nav-active sidebar-toc-active">
      <ul class="sidebar-nav">
        <li class="sidebar-nav-toc">
          Table of Contents
        </li>
        <li class="sidebar-nav-overview">
          Overview
        </li>
      </ul>

      <div class="sidebar-panel-container">
        <!--noindex-->
        <div class="post-toc-wrap sidebar-panel">
            <div class="post-toc animated"><ol class="nav"><li class="nav-item nav-level-2"><a class="nav-link" href="#%E5%80%9F%E5%8F%A3"><span class="nav-number">1.</span> <span class="nav-text">借口</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E6%B3%A8%E6%84%8F"><span class="nav-number">2.</span> <span class="nav-text">注意</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E5%88%97%E8%A1%A8"><span class="nav-number">3.</span> <span class="nav-text">列表</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E9%A1%B5%E9%9D%A2"><span class="nav-number">4.</span> <span class="nav-text">页面</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E4%BB%A3%E7%A0%81"><span class="nav-number">5.</span> <span class="nav-text">代码</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E9%97%AE%E9%A2%98"><span class="nav-number">6.</span> <span class="nav-text">问题</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E6%9C%80%E5%90%8E"><span class="nav-number">7.</span> <span class="nav-text">最后</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E5%8F%82%E8%80%83"><span class="nav-number">8.</span> <span class="nav-text">参考</span></a></li></ol></div>
        </div>
        <!--/noindex-->

        <div class="site-overview-wrap sidebar-panel">
          <div class="site-author site-overview-item animated" itemprop="author" itemscope itemtype="http://schema.org/Person">
    <img class="site-author-image" itemprop="image" alt="JackCh3n"
      src="https://www.wulihub.com.cn/gc/Wez0VG/images/avatar.png">
  <p class="site-author-name" itemprop="name">JackCh3n</p>
  <div class="site-description" itemprop="description">Record the pit filling process with words</div>
</div>
<div class="site-state-wrap site-overview-item animated">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
        <a href="/archives/">
          <span class="site-state-item-count">146</span>
          <span class="site-state-item-name">posts</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
          <a href="/categories/">
        <span class="site-state-item-count">42</span>
        <span class="site-state-item-name">categories</span></a>
      </div>
      <div class="site-state-item site-state-tags">
          <a href="/tags/">
        <span class="site-state-item-count">279</span>
        <span class="site-state-item-name">tags</span></a>
      </div>
  </nav>
</div>
  <div class="links-of-author site-overview-item animated">
      <span class="links-of-author-item">
        <a href="https://github.com/jackch3n" title="GitHub → https:&#x2F;&#x2F;github.com&#x2F;jackch3n" rel="noopener" target="_blank"><i class="github fa-fw"></i>GitHub</a>
      </span>
  </div>


  <div class="links-of-blogroll site-overview-item animated">
    <div class="links-of-blogroll-title"><i class="fa fa-globe fa-fw"></i>
      Links
    </div>
    <ul class="links-of-blogroll-list">
        <li class="links-of-blogroll-item">
          <a href="https://vercel.com/?f=nobige" title="https:&#x2F;&#x2F;vercel.com?f&#x3D;nobige" rel="noopener" target="_blank">vercel</a>
        </li>
        <li class="links-of-blogroll-item">
          <a href="https://www.jsdelivr.com/?f=nobige" title="https:&#x2F;&#x2F;www.jsdelivr.com?f&#x3D;nobige" rel="noopener" target="_blank">jsdelivr</a>
        </li>
        <li class="links-of-blogroll-item">
          <a href="https://www.upyun.com/?f=nobige" title="https:&#x2F;&#x2F;www.upyun.com?f&#x3D;nobige" rel="noopener" target="_blank">upyun</a>
        </li>
        <li class="links-of-blogroll-item">
          <a href="https://coding.net/?f=nobige" title="https:&#x2F;&#x2F;coding.net?f&#x3D;nobige" rel="noopener" target="_blank">coding</a>
        </li>
        <li class="links-of-blogroll-item">
          <a href="https://unsplash.com/?f=nobige" title="https:&#x2F;&#x2F;unsplash.com?f&#x3D;nobige" rel="noopener" target="_blank">unsplash</a>
        </li>
    </ul>
  </div>

        </div>
      </div>
    </div>
  </aside>
  <div class="sidebar-dimmer"></div>


    </header>

    
  <div class="back-to-top" role="button" aria-label="Back to top">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>

<noscript>
  <div class="noscript-warning">Theme NexT works best with JavaScript enabled</div>
</noscript>


    <div class="main-inner post posts-expand">


  


<div class="post-block">
  
  

  <article itemscope itemtype="http://schema.org/Article" class="post-content" lang="en">
    <link itemprop="mainEntityOfPage" href="https://nobige.cn/post/20190718-pythonpaquaomendiyiduchangzanzhushipinwangzhan/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="https://www.wulihub.com.cn/gc/Wez0VG/images/avatar.png">
      <meta itemprop="name" content="JackCh3n">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="NoBige-JackCh3n">
      <meta itemprop="description" content="Record the pit filling process with words">
    </span>

    <span hidden itemprop="post" itemscope itemtype="http://schema.org/CreativeWork">
      <meta itemprop="name" content="python爬取澳门第一赌场赞助视频网站 | NoBige-JackCh3n">
      <meta itemprop="description" content="">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          python爬取澳门第一赌场赞助视频网站
        </h1>

        <div class="post-meta-container">
          <div class="post-meta">
    <span class="post-meta-item">
      <span class="post-meta-item-icon">
        <i class="far fa-calendar"></i>
      </span>
      <span class="post-meta-item-text">Posted on</span>

      <time title="Created: 2019-07-18 11:37:08" itemprop="dateCreated datePublished" datetime="2019-07-18T11:37:08+08:00">2019-07-18</time>
    </span>
    <span class="post-meta-item">
      <span class="post-meta-item-icon">
        <i class="far fa-calendar-check"></i>
      </span>
      <span class="post-meta-item-text">Edited on</span>
      <time title="Modified: 2024-11-07 10:59:06" itemprop="dateModified" datetime="2024-11-07T10:59:06+08:00">2024-11-07</time>
    </span>
    <span class="post-meta-item">
      <span class="post-meta-item-icon">
        <i class="far fa-folder"></i>
      </span>
      <span class="post-meta-item-text">In</span>
        <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
          <a href="/categories/python/" itemprop="url" rel="index"><span itemprop="name">python</span></a>
        </span>
    </span>

  
    <span class="post-meta-item" title="Views" id="busuanzi_container_page_pv">
      <span class="post-meta-item-icon">
        <i class="far fa-eye"></i>
      </span>
      <span class="post-meta-item-text">Views: </span>
      <span id="busuanzi_value_page_pv"></span>
    </span>
</div>

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">
        <p><img src="https://blog-static.nobige.cn/gh/JackCh3n/n0bige/post/20190718-pythonpaquaomendiyiduchangzanzhushipinwangzhan/aomen.jpg" alt="澳门首家线上赌场"></p>
<h2 id="借口"><a href="#借口" class="headerlink" title="借口"></a>借口</h2><p>​	那是一个夜黑风高的晚上，楼主正在整理东芝2T硬盘，在一个角落里发现一个小小的视频，点击一看映入眼前的是图1，后面就是看了会让人赤面耳红的画面，嗯哼！“澳门首家线上赌场上线啦！@#￥%……&amp;”，接着就是这次文章的主要角色，@#￥%论坛<em>（宣传画面上的链接）</em></p>
<p><img src="https://blog-static.nobige.cn/gh/JackCh3n/n0bige/post/20190718-pythonpaquaomendiyiduchangzanzhushipinwangzhan/fbi.jpg" alt="fbi warning"></p>
<h2 id="注意"><a href="#注意" class="headerlink" title="注意"></a>注意</h2><p><strong>为了不必要的麻烦，本文中所有文字和图片及链接都经过处理，但保持原网站的结构</strong></p>
<p><strong>为了不必要的麻烦，本文中所有文字和图片及链接都经过处理，但保持原网站的结构</strong></p>
<p><strong>为了不必要的麻烦，本文中所有文字和图片及链接都经过处理，但保持原网站的结构</strong></p>
<h2 id="列表"><a href="#列表" class="headerlink" title="列表"></a>列表</h2><p>​	论坛采用的典型的Discuz! X3.4程序建的，板块太多，随便点了几个就让人不能镇定自若，本着学习的态度分析了其中一个板块</p>
<p><img src="https://blog-static.nobige.cn/gh/JackCh3n/n0bige/post/20190718-pythonpaquaomendiyiduchangzanzhushipinwangzhan/xiao2019-07-18-11-17-00-652.jpg" alt="Discuz! X3.4"></p>
<p>​	板块的名称叫【原创BT电影】，是提供BT种子类型的，也利于我们用Python抓取，点了其中了【亚洲有码原创】，真的是因为文字太具有色情性质，换了一个相对而言比较好的板块截图，但是框架结构是一样的。</p>
<p><img src="https://blog-static.nobige.cn/gh/JackCh3n/n0bige/post/20190718-pythonpaquaomendiyiduchangzanzhushipinwangzhan/xiao2019-07-18-11-16-28-50.jpg" alt="原创BT电影"></p>
<p>【“假”亚洲有码原创】大概长这个样子，要抓取的知识其中的<strong>非置顶</strong>部分</p>
<p><img src="https://blog-static.nobige.cn/gh/JackCh3n/n0bige/post/20190718-pythonpaquaomendiyiduchangzanzhushipinwangzhan/xiao2019-07-18-11-18-35-110.jpg" alt="“假”亚洲有码原创"></p>
<p>审核元素，发现置顶和非置顶都在一个table中，每一条信息里面的id，呈现某种我未发现的规律，怎么办法？去除呗，首先想到的是求差集，在a中但不在b中；把a中的b去除。我要的操作就是将b进行收集（参考1）</p>
<p><img src="https://blog-static.nobige.cn/gh/JackCh3n/n0bige/post/20190718-pythonpaquaomendiyiduchangzanzhushipinwangzhan/xiao2019-07-18-11-20-49-711.jpg" alt="链接列表"></p>
<figure class="highlight python"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">def</span> <span class="title function_">diff</span>(<span class="params">listA,listB</span>):</span><br><span class="line">    <span class="comment">#求差集，在A中但不在B中；把A中的B去除</span></span><br><span class="line">    <span class="keyword">return</span> <span class="built_in">list</span>(<span class="built_in">set</span>(listA).difference(<span class="built_in">set</span>(listB)))</span><br></pre></td></tr></table></figure>

<p>但是我在实际应用中并没有用到，打印类型好像不对，理论上是可行的。我用的是另外一种方法——判断，即在遍历链接列表的时候加个判断，原理和差集相似。</p>
<figure class="highlight python"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">url_list_b = [<span class="string">&#x27;thread-141587-1-1.html&#x27;</span>,<span class="string">&#x27;thread-141585-1-1.html&#x27;</span>,<span class="string">&#x27;thread-126525-1-1.html&#x27;</span>,<span class="string">&#x27;thread-126525-1-1.html&#x27;</span>]</span><br><span class="line">        <span class="comment">#发布器，app，改革，招聘</span></span><br><span class="line">        <span class="keyword">for</span> item <span class="keyword">in</span> url_list:</span><br><span class="line">            temp_url = item.attrs[<span class="string">&#x27;href&#x27;</span>]</span><br><span class="line">            <span class="keyword">if</span> temp_url <span class="keyword">not</span> <span class="keyword">in</span> url_list_b:</span><br></pre></td></tr></table></figure>

<p>对于链接列表要获取的只有【地址】，链接名(链接标题)可有可无，因为在页面里面也是可以获取具体的标题的，我还是获取下链接名。链接也是有特点的，那便是 class为“s xst”，如此遍简单了。</p>
<figure class="highlight python"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">url_list = bsObj.find_all(<span class="string">&#x27;a&#x27;</span>,&#123;<span class="string">&#x27;class&#x27;</span>:<span class="string">&#x27;s xst&#x27;</span>&#125;)</span><br></pre></td></tr></table></figure>

<p>遍历全部的链接</p>
<figure class="highlight python"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">for</span> item <span class="keyword">in</span> url_list:</span><br><span class="line">            temp_url = item.attrs[<span class="string">&#x27;href&#x27;</span>]</span><br><span class="line">            <span class="keyword">if</span> temp_url <span class="keyword">not</span> <span class="keyword">in</span> url_list_b:</span><br><span class="line">                <span class="built_in">print</span>(item.get_text())<span class="comment">#标题</span></span><br><span class="line">                <span class="built_in">print</span>(temp_url)<span class="comment">#链接</span></span><br></pre></td></tr></table></figure>

<p>遍历效果</p>
<p><img src="https://blog-static.nobige.cn/gh/JackCh3n/n0bige/post/20190718-pythonpaquaomendiyiduchangzanzhushipinwangzhan/xiao2019-07-18-13-07-54-266.jpg" alt="遍历效果"></p>
<p>接下来则是获取具体的电影信息即可。</p>
<h2 id="页面"><a href="#页面" class="headerlink" title="页面"></a>页面</h2><p>点开某个链接，页面大概长这个样子<em>（处理过）</em></p>
<p><img src="https://blog-static.nobige.cn/gh/JackCh3n/n0bige/post/20190718-pythonpaquaomendiyiduchangzanzhushipinwangzhan/xiao2019-07-18-11-31-36-69.jpg" alt="页面"></p>
<p>我提取了楼主发布的全部信息的html源码</p>
<p><img src="https://blog-static.nobige.cn/gh/JackCh3n/n0bige/post/20190718-pythonpaquaomendiyiduchangzanzhushipinwangzhan/xiao2019-07-18-11-36-03-575.jpg" alt="楼主发布信息"></p>
<figure class="highlight html"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br></pre></td><td class="code"><pre><span class="line"><span class="tag">&lt;<span class="name">div</span> <span class="attr">class</span>=<span class="string">&quot;t_fsz&quot;</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;<span class="name">table</span> <span class="attr">cellspacing</span>=<span class="string">&quot;0&quot;</span> <span class="attr">cellpadding</span>=<span class="string">&quot;0&quot;</span>&gt;</span><span class="tag">&lt;<span class="name">tbody</span>&gt;</span><span class="tag">&lt;<span class="name">tr</span>&gt;</span><span class="tag">&lt;<span class="name">td</span> <span class="attr">class</span>=<span class="string">&quot;t_f&quot;</span> <span class="attr">id</span>=<span class="string">&quot;postmessage_752937&quot;</span>&gt;</span></span><br><span class="line">影片名称：【初撮り】ネットでAV応募→AV体験撮影 1017 スレンダー体型の美人看護師が登場。脱いだらブラから溢れそうなおっぱい<span class="symbol">&amp;amp;</span>美尻のエロボディ！カメラの前で緊張しながらも激しいピストンにエロボディを揺らしながらイき乱れる！<span class="tag">&lt;<span class="name">br</span>&gt;</span></span><br><span class="line">影片容量:1.51GB<span class="tag">&lt;<span class="name">br</span>&gt;</span></span><br><span class="line">出演：<span class="symbol">&amp;nbsp;</span> <span class="symbol">&amp;nbsp;</span> <span class="symbol">&amp;nbsp;</span> <span class="symbol">&amp;nbsp;</span> みづな 24歳 看護師<span class="tag">&lt;<span class="name">br</span>&gt;</span></span><br><span class="line">メーカー：<span class="symbol">&amp;nbsp;</span> <span class="symbol">&amp;nbsp;</span> <span class="symbol">&amp;nbsp;</span> <span class="symbol">&amp;nbsp;</span> シロウトTV<span class="tag">&lt;<span class="name">br</span>&gt;</span></span><br><span class="line">収録時間：<span class="symbol">&amp;nbsp;</span> <span class="symbol">&amp;nbsp;</span> <span class="symbol">&amp;nbsp;</span> <span class="symbol">&amp;nbsp;</span> 53min<span class="tag">&lt;<span class="name">br</span>&gt;</span></span><br><span class="line">配信開始日：<span class="symbol">&amp;nbsp;</span> <span class="symbol">&amp;nbsp;</span> <span class="symbol">&amp;nbsp;</span> <span class="symbol">&amp;nbsp;</span> 2019/07/17<span class="tag">&lt;<span class="name">br</span>&gt;</span></span><br><span class="line">シリーズ：<span class="symbol">&amp;nbsp;</span> <span class="symbol">&amp;nbsp;</span> <span class="symbol">&amp;nbsp;</span> <span class="symbol">&amp;nbsp;</span> 【初撮り】ネットでAV応募→AV体験撮影<span class="tag">&lt;<span class="name">br</span>&gt;</span></span><br><span class="line">レーベル：<span class="symbol">&amp;nbsp;</span> <span class="symbol">&amp;nbsp;</span> <span class="symbol">&amp;nbsp;</span> <span class="symbol">&amp;nbsp;</span> <span class="tag">&lt;<span class="name">br</span>&gt;</span></span><br><span class="line">ジャンル：<span class="symbol">&amp;nbsp;</span> <span class="symbol">&amp;nbsp;</span> <span class="symbol">&amp;nbsp;</span> <span class="symbol">&amp;nbsp;</span> 独占配信 ハイビジョン(HD) 配信専用 素人 初撮り 清楚 ハメ撮り スレンダー 美尻<span class="tag">&lt;<span class="name">br</span>&gt;</span></span><br><span class="line">品番：<span class="symbol">&amp;nbsp;</span> <span class="symbol">&amp;nbsp;</span> <span class="symbol">&amp;nbsp;</span> <span class="symbol">&amp;nbsp;</span> SIRO-3871<span class="tag">&lt;<span class="name">br</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;<span class="name">img</span> <span class="attr">id</span>=<span class="string">&quot;aimg_I4ET5&quot;</span> <span class="attr">onclick</span>=<span class="string">&quot;zoom(this, this.src, 0, 0, 0)&quot;</span> <span class="attr">class</span>=<span class="string">&quot;zoom&quot;</span> <span class="attr">file</span>=<span class="string">&quot;https://image.mgstage.com/images/shirouto/siro/3871/pb_e_siro-3871.jpg&quot;</span> <span class="attr">onmouseover</span>=<span class="string">&quot;img_onmouseoverfunc(this)&quot;</span> <span class="attr">lazyloadthumb</span>=<span class="string">&quot;1&quot;</span> <span class="attr">border</span>=<span class="string">&quot;0&quot;</span> <span class="attr">alt</span>=<span class="string">&quot;&quot;</span> <span class="attr">src</span>=<span class="string">&quot;https://image.mgstage.com/images/shirouto/siro/3871/pb_e_siro-3871.jpg&quot;</span> <span class="attr">lazyloaded</span>=<span class="string">&quot;true&quot;</span> <span class="attr">width</span>=<span class="string">&quot;600&quot;</span> <span class="attr">height</span>=<span class="string">&quot;337&quot;</span> <span class="attr">style</span>=<span class="string">&quot;cursor: pointer;&quot;</span>&gt;</span><span class="tag">&lt;<span class="name">br</span>&gt;</span></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"><span class="tag">&lt;<span class="name">br</span>&gt;</span></span><br><span class="line">磁力链接<span class="tag">&lt;<span class="name">br</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;<span class="name">div</span> <span class="attr">class</span>=<span class="string">&quot;blockcode&quot;</span>&gt;</span><span class="tag">&lt;<span class="name">div</span> <span class="attr">id</span>=<span class="string">&quot;code_Ec2&quot;</span>&gt;</span><span class="tag">&lt;<span class="name">ol</span>&gt;</span><span class="tag">&lt;<span class="name">li</span>&gt;</span>magnet:?xt=urn:btih:qwertyuiop1234567890<span class="tag">&lt;/<span class="name">li</span>&gt;</span><span class="tag">&lt;/<span class="name">ol</span>&gt;</span><span class="tag">&lt;/<span class="name">div</span>&gt;</span><span class="tag">&lt;<span class="name">em</span> <span class="attr">onclick</span>=<span class="string">&quot;copycode($(&#x27;code_Ec2&#x27;));&quot;</span>&gt;</span>复制代码<span class="tag">&lt;/<span class="name">em</span>&gt;</span><span class="tag">&lt;/<span class="name">div</span>&gt;</span><span class="tag">&lt;<span class="name">br</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;/<span class="name">td</span>&gt;</span><span class="tag">&lt;/<span class="name">tr</span>&gt;</span><span class="tag">&lt;/<span class="name">tbody</span>&gt;</span><span class="tag">&lt;/<span class="name">table</span>&gt;</span></span><br><span class="line"></span><br><span class="line"><span class="tag">&lt;<span class="name">div</span> <span class="attr">class</span>=<span class="string">&quot;modact&quot;</span>&gt;</span><span class="tag">&lt;<span class="name">a</span> <span class="attr">href</span>=<span class="string">&quot;forum.php?mod=misc<span class="symbol">&amp;amp;</span>action=viewthreadmod<span class="symbol">&amp;amp;</span>tid=142117&quot;</span> <span class="attr">title</span>=<span class="string">&quot;帖子模式&quot;</span> <span class="attr">onclick</span>=<span class="string">&quot;showWindow(&#x27;viewthreadmod&#x27;, this.href)&quot;</span>&gt;</span>本主题由 XXXXXX 于 <span class="tag">&lt;<span class="name">span</span> <span class="attr">title</span>=<span class="string">&quot;2019-07-18 10:42&quot;</span>&gt;</span>半小时前<span class="tag">&lt;/<span class="name">span</span>&gt;</span> 设置高亮<span class="tag">&lt;/<span class="name">a</span>&gt;</span><span class="tag">&lt;/<span class="name">div</span>&gt;</span><span class="tag">&lt;<span class="name">div</span> <span class="attr">class</span>=<span class="string">&quot;pattl&quot;</span>&gt;</span></span><br><span class="line"></span><br><span class="line"><span class="tag">&lt;<span class="name">ignore_js_op</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;<span class="name">dl</span> <span class="attr">class</span>=<span class="string">&quot;tattl&quot;</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;<span class="name">dt</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;<span class="name">img</span> <span class="attr">src</span>=<span class="string">&quot;static/image/filetype/torrent.gif&quot;</span> <span class="attr">border</span>=<span class="string">&quot;0&quot;</span> <span class="attr">class</span>=<span class="string">&quot;vm&quot;</span> <span class="attr">alt</span>=<span class="string">&quot;&quot;</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;/<span class="name">dt</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;<span class="name">dd</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;<span class="name">p</span> <span class="attr">class</span>=<span class="string">&quot;attnm&quot;</span>&gt;</span></span><br><span class="line"></span><br><span class="line"><span class="tag">&lt;<span class="name">a</span> <span class="attr">href</span>=<span class="string">&quot;forum.php?mod=attachment<span class="symbol">&amp;amp;</span>aid=MTkyNzgyfDhmMDdkOGI3fDE1NjM0MjA0ODJ8MHwxNDIxMTc%3D&quot;</span> <span class="attr">onmouseover</span>=<span class="string">&quot;showMenu(&#123;&#x27;ctrlid&#x27;:this.id,&#x27;pos&#x27;:&#x27;12&#x27;&#125;)&quot;</span> <span class="attr">id</span>=<span class="string">&quot;aid192782&quot;</span> <span class="attr">target</span>=<span class="string">&quot;_blank&quot;</span> <span class="attr">initialized</span>=<span class="string">&quot;true&quot;</span>&gt;</span>SIRO-3871.torrent<span class="tag">&lt;/<span class="name">a</span>&gt;</span></span><br><span class="line"></span><br><span class="line"><span class="tag">&lt;/<span class="name">p</span>&gt;</span><span class="tag">&lt;<span class="name">div</span> <span class="attr">class</span>=<span class="string">&quot;tip tip_4&quot;</span> <span class="attr">id</span>=<span class="string">&quot;aid192782_menu&quot;</span> <span class="attr">style</span>=<span class="string">&quot;position: absolute; z-index: 301; left: 693.5px; top: 1444px; display: none;&quot;</span> <span class="attr">disautofocus</span>=<span class="string">&quot;true&quot;</span> <span class="attr">initialized</span>=<span class="string">&quot;true&quot;</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;<span class="name">div</span> <span class="attr">class</span>=<span class="string">&quot;tip_c&quot;</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;<span class="name">p</span> <span class="attr">class</span>=<span class="string">&quot;y&quot;</span>&gt;</span><span class="tag">&lt;<span class="name">span</span> <span class="attr">title</span>=<span class="string">&quot;2019-07-18 10:40&quot;</span>&gt;</span>半小时前<span class="tag">&lt;/<span class="name">span</span>&gt;</span> 上传<span class="tag">&lt;/<span class="name">p</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;<span class="name">p</span>&gt;</span>点击文件名下载附件<span class="tag">&lt;/<span class="name">p</span>&gt;</span></span><br><span class="line"></span><br><span class="line"><span class="tag">&lt;/<span class="name">div</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;<span class="name">div</span> <span class="attr">class</span>=<span class="string">&quot;tip_horn&quot;</span>&gt;</span><span class="tag">&lt;/<span class="name">div</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;/<span class="name">div</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;<span class="name">p</span>&gt;</span><span class="tag">&lt;/<span class="name">p</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;<span class="name">p</span>&gt;</span>16.69 KB, 下载次数: 72<span class="tag">&lt;/<span class="name">p</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;<span class="name">p</span>&gt;</span></span><br><span class="line"></span><br><span class="line"><span class="tag">&lt;/<span class="name">p</span>&gt;</span></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"><span class="tag">&lt;/<span class="name">dd</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;/<span class="name">dl</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;/<span class="name">ignore_js_op</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;/<span class="name">div</span>&gt;</span></span><br><span class="line"></span><br><span class="line"><span class="tag">&lt;/<span class="name">div</span>&gt;</span></span><br></pre></td></tr></table></figure>

<p>又是这样一大段文字，没有任何id或者class，之前的几个爬虫我都是尽量避免和他们相见的</p>
<p><img src="https://blog-static.nobige.cn/gh/JackCh3n/n0bige/post/20190718-pythonpaquaomendiyiduchangzanzhushipinwangzhan/xiao2019-07-18-11-40-41-972.jpg" alt="电影信息文字"></p>
<p>但是想起之前看的一篇爬虫文章有处理过类似的文字（参考2）其核心函数只有一个</p>
<p><img src="https://blog-static.nobige.cn/gh/JackCh3n/n0bige/post/20190718-pythonpaquaomendiyiduchangzanzhushipinwangzhan/xiao2019-07-18-13-16-20-818.jpg" alt="startswith"></p>
<p>又搜索了下 startswith 这函数得知（参考3）</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br></pre></td><td class="code"><pre><span class="line">Python3 startswith()方法</span><br><span class="line">Python3 字符串 Python3 字符串</span><br><span class="line"></span><br><span class="line">描述</span><br><span class="line">startswith() 方法用于检查字符串是否是以指定子字符串开头，如果是则返回 True，否则返回 False。如果参数 beg 和 end 指定值，则在指定范围内检查。</span><br><span class="line"></span><br><span class="line">语法</span><br><span class="line">startswith()方法语法：</span><br><span class="line"></span><br><span class="line">str.startswith(substr, beg=0,end=len(string));</span><br><span class="line">参数</span><br><span class="line">str -- 检测的字符串。</span><br><span class="line">substr -- 指定的子字符串。</span><br><span class="line">strbeg -- 可选参数用于设置字符串检测的起始位置。</span><br><span class="line">strend -- 可选参数用于设置字符串检测的结束位置。</span><br><span class="line">返回值</span><br><span class="line">如果检测到字符串则返回True，否则返回False。</span><br></pre></td></tr></table></figure>

<p>​	如此一来一大段文字也不是没有解决的办法了，先将其字符串替换成统一，去掉不必要的字符，最后再分组即可。我在其中还发现了一个有意思的地方那便是中文，英文，日文状态下的冒号完全不同，中英还好理解，日文也特别还是第一次见.</p>
<p>​	电影信息也是分为两个部分处理的，其1则是信息介绍，图片，磁力链接（至上到下），其2则是后来发现种子也是可以下载。</p>
<figure class="highlight python"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br></pre></td><td class="code"><pre><span class="line">html.encoding = <span class="string">&#x27;utf-8&#x27;</span></span><br><span class="line">bsObj = BeautifulSoup(html.text,<span class="string">&#x27;lxml&#x27;</span>)</span><br><span class="line"><span class="keyword">if</span> bsObj.title:</span><br><span class="line">    b = bsObj.find(<span class="string">&#x27;td&#x27;</span>,&#123;<span class="string">&#x27;class&#x27;</span>:<span class="string">&#x27;t_f&#x27;</span>&#125;)</span><br><span class="line">    <span class="comment"># print(len(b))</span></span><br><span class="line">    c = b.get_text().replace(<span class="string">&#x27;：&#x27;</span>,<span class="string">&#x27;:&#x27;</span>).replace(<span class="string">&#x27;：&#x27;</span>,<span class="string">&#x27;:&#x27;</span>).replace(<span class="string">&#x27;\r&#x27;</span>,<span class="string">&#x27;&#x27;</span>).split(<span class="string">&quot;\n&quot;</span>)</span><br><span class="line">    <span class="comment"># print(b.get_text())</span></span><br><span class="line">    <span class="comment">#种子</span></span><br><span class="line">    torrent = b.select(<span class="string">&#x27;a[target=&quot;_blank&quot;]&#x27;</span>)</span><br><span class="line">    <span class="keyword">if</span> torrent:</span><br><span class="line">        torrent = torrent[<span class="number">0</span>].attrs[<span class="string">&#x27;href&#x27;</span>]</span><br><span class="line">    <span class="comment"># print(torrent)</span></span><br><span class="line">    </span><br><span class="line">    <span class="comment">#图片</span></span><br><span class="line">    image = b.find_all(<span class="string">&#x27;img&#x27;</span>)</span><br><span class="line">    images = []</span><br><span class="line">    <span class="keyword">for</span> item <span class="keyword">in</span> image:</span><br><span class="line">        images.append(item.attrs[<span class="string">&#x27;file&#x27;</span>])</span><br><span class="line">    <span class="comment"># print(images)</span></span><br><span class="line">    </span><br><span class="line">    <span class="comment">#影片信息</span></span><br><span class="line">    movie_info = &#123;&#125;</span><br><span class="line">    <span class="keyword">for</span> item <span class="keyword">in</span> c:</span><br><span class="line">        <span class="keyword">if</span> item.startswith(<span class="string">&#x27;影片名称:&#x27;</span>):</span><br><span class="line">            <span class="comment"># print(item.replace(&#x27;影片名称:&#x27;,&quot;&quot;))</span></span><br><span class="line">            movie_info[<span class="string">&#x27;name&#x27;</span>] = item.replace(<span class="string">&#x27;影片名称:&#x27;</span>,<span class="string">&quot;&quot;</span>)</span><br><span class="line"></span><br><span class="line">        <span class="keyword">if</span> item.startswith(<span class="string">&#x27;影片容量:&#x27;</span>):</span><br><span class="line">            movie_info[<span class="string">&#x27;size&#x27;</span>] = (item.replace(<span class="string">&#x27;影片容量:&#x27;</span>,<span class="string">&quot;&quot;</span>))</span><br><span class="line"></span><br><span class="line">        <span class="keyword">if</span> item.startswith(<span class="string">&#x27;出演:&#x27;</span>):</span><br><span class="line">            movie_info[<span class="string">&#x27;star&#x27;</span>] = (item.replace(<span class="string">&#x27;出演:        &#x27;</span>,<span class="string">&quot;&quot;</span>))</span><br><span class="line"></span><br><span class="line">        <span class="keyword">if</span> item.startswith(<span class="string">&#x27;収録時間:&#x27;</span>):</span><br><span class="line">            movie_info[<span class="string">&#x27;Rtime&#x27;</span>] = (item.replace(<span class="string">&#x27;収録時間:        &#x27;</span>,<span class="string">&quot;&quot;</span>))</span><br><span class="line"></span><br><span class="line">        <span class="keyword">if</span> item.startswith(<span class="string">&#x27;シリーズ:&#x27;</span>):</span><br><span class="line">            movie_info[<span class="string">&#x27;series&#x27;</span>] = (item.replace(<span class="string">&#x27;シリーズ:        &#x27;</span>,<span class="string">&quot;&quot;</span>))</span><br><span class="line"></span><br><span class="line">        <span class="keyword">if</span> item.startswith(<span class="string">&#x27;レーベル:&#x27;</span>):</span><br><span class="line">            movie_info[<span class="string">&#x27;lable&#x27;</span>] = (item.replace(<span class="string">&#x27;レーベル:        &#x27;</span>,<span class="string">&quot;&quot;</span>))</span><br><span class="line"></span><br><span class="line">        <span class="keyword">if</span> item.startswith(<span class="string">&#x27;ジャンル:&#x27;</span>):</span><br><span class="line">            movie_info[<span class="string">&#x27;schools&#x27;</span>] = (item.replace(<span class="string">&#x27;ジャンル:        &#x27;</span>,<span class="string">&quot;&quot;</span>))</span><br><span class="line"></span><br><span class="line">        <span class="keyword">if</span> item.startswith(<span class="string">&#x27;品番:&#x27;</span>):</span><br><span class="line">            movie_info[<span class="string">&#x27;code&#x27;</span>] = (item.replace(<span class="string">&#x27;品番:        &#x27;</span>,<span class="string">&quot;&quot;</span>))</span><br><span class="line"></span><br><span class="line">        <span class="keyword">if</span> item.startswith(<span class="string">&#x27;magnet:&#x27;</span>):</span><br><span class="line">            movie_info[<span class="string">&#x27;magnet&#x27;</span>] = (item.replace(<span class="string">&#x27;复制代码&#x27;</span>,<span class="string">&quot;&quot;</span>))</span><br><span class="line">        <span class="keyword">if</span> item.startswith(<span class="string">&#x27;磁力链接 &#x27;</span>):</span><br><span class="line">            movie_info[<span class="string">&#x27;magnet&#x27;</span>] = (item.replace(<span class="string">&#x27;复制代码&#x27;</span>,<span class="string">&quot;&quot;</span>).replace(<span class="string">&#x27;磁力链接 &#x27;</span>,<span class="string">&#x27;&#x27;</span>))</span><br><span class="line">    movie_info[<span class="string">&#x27;torrent&#x27;</span>] = <span class="string">&#x27;https://www.baidu.com/&#x27;</span>+torrent</span><br><span class="line">    movie_info[<span class="string">&#x27;images&#x27;</span>] = images</span><br></pre></td></tr></table></figure>

<p>和参考2不同的是我是直接获取text之后在进行处理，所以对空格 用<code>&amp;nbsp</code>是不能替换的，尝试过加双引号也未果，便只能用复制空格替换了，其实trim应该也是可以的吧。</p>
<p>最终运行结果（演示，只抓取一个链接）</p>
<p><img src="https://blog-static.nobige.cn/gh/JackCh3n/n0bige/post/20190718-pythonpaquaomendiyiduchangzanzhushipinwangzhan/xiao2019-07-18-13-50-03-873.jpg" alt="最终运行结果"></p>
<h2 id="代码"><a href="#代码" class="headerlink" title="代码"></a>代码</h2><figure class="highlight python"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br><span class="line">72</span><br><span class="line">73</span><br><span class="line">74</span><br><span class="line">75</span><br><span class="line">76</span><br><span class="line">77</span><br><span class="line">78</span><br><span class="line">79</span><br><span class="line">80</span><br><span class="line">81</span><br><span class="line">82</span><br><span class="line">83</span><br><span class="line">84</span><br><span class="line">85</span><br><span class="line">86</span><br><span class="line">87</span><br><span class="line">88</span><br><span class="line">89</span><br><span class="line">90</span><br><span class="line">91</span><br><span class="line">92</span><br><span class="line">93</span><br><span class="line">94</span><br><span class="line">95</span><br><span class="line">96</span><br><span class="line">97</span><br><span class="line">98</span><br><span class="line">99</span><br><span class="line">100</span><br><span class="line">101</span><br><span class="line">102</span><br><span class="line">103</span><br><span class="line">104</span><br><span class="line">105</span><br><span class="line">106</span><br><span class="line">107</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># -*-coding:utf-8-*-</span></span><br><span class="line"><span class="keyword">import</span> requests</span><br><span class="line"><span class="keyword">import</span> re</span><br><span class="line"><span class="keyword">from</span> bs4 <span class="keyword">import</span> BeautifulSoup</span><br><span class="line"><span class="comment">#求差集，在A中但不在B中；把A中的B去除</span></span><br><span class="line"><span class="keyword">def</span> <span class="title function_">diff</span>(<span class="params">listA,listB</span>):</span><br><span class="line">    <span class="keyword">return</span> <span class="built_in">list</span>(<span class="built_in">set</span>(listA).difference(<span class="built_in">set</span>(listB)))</span><br><span class="line"><span class="comment">#获取电影列表</span></span><br><span class="line"><span class="keyword">def</span> <span class="title function_">get_page</span>(<span class="params">url,movie_list</span>):</span><br><span class="line">    headers = &#123;<span class="string">&#x27;user-agent&#x27;</span>: <span class="string">&#x27;Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36&#x27;</span>&#125;</span><br><span class="line">    proxies = &#123;<span class="string">&quot;http&quot;</span>: <span class="string">&quot;http://127.0.0.1:1080&quot;</span>, <span class="string">&quot;https&quot;</span>: <span class="string">&quot;127.0.0.1:1080&quot;</span>&#125;</span><br><span class="line">    html = requests.get(url,headers=headers, proxies=proxies)</span><br><span class="line">    <span class="comment"># html = requests.get(url,headers=headers)</span></span><br><span class="line">    <span class="keyword">try</span>:</span><br><span class="line">        html.encoding = <span class="string">&#x27;utf-8&#x27;</span></span><br><span class="line">        bsObj = BeautifulSoup(html.text,<span class="string">&#x27;lxml&#x27;</span>)</span><br><span class="line">        url_list = bsObj.find_all(<span class="string">&#x27;a&#x27;</span>,&#123;<span class="string">&#x27;class&#x27;</span>:<span class="string">&#x27;s xst&#x27;</span>&#125;)<span class="comment">#获取全部链接</span></span><br><span class="line">        <span class="built_in">print</span>(<span class="built_in">str</span>(<span class="built_in">type</span>(url_list)))</span><br><span class="line">        <span class="built_in">print</span>(<span class="built_in">len</span>(url_list))</span><br><span class="line">        <span class="comment"># print(url_list)</span></span><br><span class="line">        url_list_b = [<span class="string">&#x27;thread-141587-1-1.html&#x27;</span>,<span class="string">&#x27;thread-141585-1-1.html&#x27;</span>,<span class="string">&#x27;thread-126525-1-1.html&#x27;</span>,<span class="string">&#x27;thread-101886-1-1.html&#x27;</span>]</span><br><span class="line">        <span class="comment">#发布器，app，改革，招聘</span></span><br><span class="line">        <span class="keyword">for</span> item <span class="keyword">in</span> url_list:</span><br><span class="line">            temp_url = item.attrs[<span class="string">&#x27;href&#x27;</span>]</span><br><span class="line">            <span class="keyword">if</span> temp_url <span class="keyword">not</span> <span class="keyword">in</span> url_list_b:</span><br><span class="line">                <span class="built_in">print</span>(item.get_text()+<span class="string">&#x27;----正在获取中&#x27;</span>)<span class="comment">#标题</span></span><br><span class="line">                <span class="comment"># print(temp_url)#链接</span></span><br><span class="line">                movie_list.append(html_de_link(<span class="string">&#x27;https://www.baidu.com/&#x27;</span>+temp_url))</span><br><span class="line">                <span class="built_in">print</span>(<span class="string">&#x27;----成功捕获一只小姐姐----&#x27;</span>)</span><br><span class="line">    <span class="keyword">except</span> ArithmeticError <span class="keyword">as</span> e:</span><br><span class="line">        <span class="keyword">return</span> <span class="literal">None</span></span><br><span class="line"><span class="comment">#获取电影下载链接</span></span><br><span class="line"><span class="keyword">def</span> <span class="title function_">html_de_link</span>(<span class="params">url</span>):</span><br><span class="line">    headers = &#123;<span class="string">&#x27;user-agent&#x27;</span>: <span class="string">&#x27;Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36&#x27;</span>&#125;</span><br><span class="line">    proxies = &#123;<span class="string">&quot;http&quot;</span>: <span class="string">&quot;http://127.0.0.1:1080&quot;</span>, <span class="string">&quot;https&quot;</span>: <span class="string">&quot;127.0.0.1:1080&quot;</span>&#125;</span><br><span class="line">    html = requests.get(url,headers=headers, proxies=proxies)</span><br><span class="line">    <span class="keyword">try</span>:</span><br><span class="line">        html.encoding = <span class="string">&#x27;utf-8&#x27;</span></span><br><span class="line">        bsObj = BeautifulSoup(html.text,<span class="string">&#x27;lxml&#x27;</span>)</span><br><span class="line">        <span class="keyword">if</span> bsObj.title:</span><br><span class="line">            b = bsObj.find(<span class="string">&#x27;td&#x27;</span>,&#123;<span class="string">&#x27;class&#x27;</span>:<span class="string">&#x27;t_f&#x27;</span>&#125;)</span><br><span class="line">            <span class="comment"># print(len(b))</span></span><br><span class="line">            c = b.get_text().replace(<span class="string">&#x27;：&#x27;</span>,<span class="string">&#x27;:&#x27;</span>).replace(<span class="string">&#x27;：&#x27;</span>,<span class="string">&#x27;:&#x27;</span>).replace(<span class="string">&#x27;\r&#x27;</span>,<span class="string">&#x27;&#x27;</span>).split(<span class="string">&quot;\n&quot;</span>)</span><br><span class="line">            <span class="comment"># print(c)</span></span><br><span class="line">            <span class="comment">#种子</span></span><br><span class="line">            torrent = b.select(<span class="string">&#x27;a[target=&quot;_blank&quot;]&#x27;</span>)</span><br><span class="line">            <span class="keyword">if</span> torrent:</span><br><span class="line">                torrent = torrent[<span class="number">0</span>].attrs[<span class="string">&#x27;href&#x27;</span>]</span><br><span class="line">            <span class="comment"># print(torrent)</span></span><br><span class="line">            </span><br><span class="line">            <span class="comment">#图片</span></span><br><span class="line">            image = b.find_all(<span class="string">&#x27;img&#x27;</span>)</span><br><span class="line">            images = []</span><br><span class="line">            <span class="keyword">for</span> item <span class="keyword">in</span> image:</span><br><span class="line">                images.append(item.attrs[<span class="string">&#x27;file&#x27;</span>])</span><br><span class="line">            <span class="comment"># print(images)</span></span><br><span class="line">            </span><br><span class="line">            <span class="comment">#影片信息</span></span><br><span class="line">            movie_info = &#123;&#125;</span><br><span class="line">            <span class="keyword">for</span> item <span class="keyword">in</span> c:</span><br><span class="line">                <span class="keyword">if</span> item.startswith(<span class="string">&#x27;影片名称:&#x27;</span>):</span><br><span class="line">                    <span class="comment"># print(item.replace(&#x27;影片名称:&#x27;,&quot;&quot;))</span></span><br><span class="line">                    movie_info[<span class="string">&#x27;name&#x27;</span>] = item.replace(<span class="string">&#x27;影片名称:&#x27;</span>,<span class="string">&quot;&quot;</span>)</span><br><span class="line"></span><br><span class="line">                <span class="keyword">if</span> item.startswith(<span class="string">&#x27;影片容量:&#x27;</span>):</span><br><span class="line">                    movie_info[<span class="string">&#x27;size&#x27;</span>] = (item.replace(<span class="string">&#x27;影片容量:&#x27;</span>,<span class="string">&quot;&quot;</span>))</span><br><span class="line"></span><br><span class="line">                <span class="keyword">if</span> item.startswith(<span class="string">&#x27;出演:&#x27;</span>):</span><br><span class="line">                    movie_info[<span class="string">&#x27;star&#x27;</span>] = (item.replace(<span class="string">&#x27;出演:        &#x27;</span>,<span class="string">&quot;&quot;</span>))</span><br><span class="line"></span><br><span class="line">                <span class="keyword">if</span> item.startswith(<span class="string">&#x27;収録時間:&#x27;</span>):</span><br><span class="line">                    movie_info[<span class="string">&#x27;Rtime&#x27;</span>] = (item.replace(<span class="string">&#x27;収録時間:        &#x27;</span>,<span class="string">&quot;&quot;</span>))</span><br><span class="line"></span><br><span class="line">                <span class="keyword">if</span> item.startswith(<span class="string">&#x27;シリーズ:&#x27;</span>):</span><br><span class="line">                    movie_info[<span class="string">&#x27;series&#x27;</span>] = (item.replace(<span class="string">&#x27;シリーズ:        &#x27;</span>,<span class="string">&quot;&quot;</span>))</span><br><span class="line"></span><br><span class="line">                <span class="keyword">if</span> item.startswith(<span class="string">&#x27;レーベル:&#x27;</span>):</span><br><span class="line">                    movie_info[<span class="string">&#x27;lable&#x27;</span>] = (item.replace(<span class="string">&#x27;レーベル:        &#x27;</span>,<span class="string">&quot;&quot;</span>))</span><br><span class="line"></span><br><span class="line">                <span class="keyword">if</span> item.startswith(<span class="string">&#x27;ジャンル:&#x27;</span>):</span><br><span class="line">                    movie_info[<span class="string">&#x27;schools&#x27;</span>] = (item.replace(<span class="string">&#x27;ジャンル:        &#x27;</span>,<span class="string">&quot;&quot;</span>))</span><br><span class="line"></span><br><span class="line">                <span class="keyword">if</span> item.startswith(<span class="string">&#x27;品番:&#x27;</span>):</span><br><span class="line">                    movie_info[<span class="string">&#x27;code&#x27;</span>] = (item.replace(<span class="string">&#x27;品番:        &#x27;</span>,<span class="string">&quot;&quot;</span>))</span><br><span class="line"></span><br><span class="line">                <span class="keyword">if</span> item.startswith(<span class="string">&#x27;magnet:&#x27;</span>):</span><br><span class="line">                    movie_info[<span class="string">&#x27;magnet&#x27;</span>] = (item.replace(<span class="string">&#x27;复制代码&#x27;</span>,<span class="string">&quot;&quot;</span>))</span><br><span class="line">                <span class="keyword">if</span> item.startswith(<span class="string">&#x27;磁力链接 &#x27;</span>):</span><br><span class="line">                    movie_info[<span class="string">&#x27;magnet&#x27;</span>] = (item.replace(<span class="string">&#x27;复制代码&#x27;</span>,<span class="string">&quot;&quot;</span>).replace(<span class="string">&#x27;磁力链接 &#x27;</span>,<span class="string">&#x27;&#x27;</span>))</span><br><span class="line">            movie_info[<span class="string">&#x27;torrent&#x27;</span>] = <span class="string">&#x27;https://www.baidu.com/&#x27;</span>+torrent</span><br><span class="line">            movie_info[<span class="string">&#x27;images&#x27;</span>] = images</span><br><span class="line">            <span class="keyword">return</span> movie_info</span><br><span class="line">            <span class="comment"># print(movie_info)</span></span><br><span class="line">            <span class="comment"># return bsObj.find(&#x27;td&#x27;,&#123;&#x27;style&#x27;:&#x27;WORD-WRAP: break-word&#x27;&#125;).a.attrs[&#x27;href&#x27;]</span></span><br><span class="line">        <span class="comment"># else:</span></span><br><span class="line">            <span class="comment"># return None</span></span><br><span class="line">    <span class="keyword">except</span> ArithmeticError <span class="keyword">as</span> e:</span><br><span class="line">        <span class="built_in">print</span>(e)</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"><span class="keyword">if</span> __name__ == <span class="string">&#x27;__main__&#x27;</span>:</span><br><span class="line">    movie_list=[]</span><br><span class="line">    <span class="keyword">for</span> i <span class="keyword">in</span> <span class="built_in">range</span>(<span class="number">1</span>,<span class="number">2</span>):</span><br><span class="line">        get_page(<span class="string">&#x27;https://www.baidu.com/forum-37-&#x27;</span>+<span class="built_in">str</span>(i)+<span class="string">&#x27;.html&#x27;</span>,movie_list)</span><br><span class="line">    <span class="built_in">print</span>(movie_list)</span><br><span class="line">    <span class="comment"># get_page(&#x27;http://localhost:8080/list.html&#x27;,movie_list)</span></span><br><span class="line">    <span class="comment"># html_de_link(&#x27;http://localhost:8080/page.html&#x27;)</span></span><br></pre></td></tr></table></figure>

<h2 id="问题"><a href="#问题" class="headerlink" title="问题"></a>问题</h2><ol>
<li><p>昨天（7-17）写的时候出现日语乱码的现象，今天再试未能复现</p>
</li>
<li><p>网站需要爱国上网，参考4</p>
</li>
<li><p>网站访问是真的慢，索性保存列表和页面，本地使用php server来测试</p>
<ol>
<li>cmd在目录下运行<code>php -S localhost:8080</code>，需要php全局变量</li>
</ol>
</li>
<li><p>电影信息完全没有必要，只要获取 品番 和预览图即可，信息则是本着学习的态度去获取</p>
</li>
</ol>
<h2 id="最后"><a href="#最后" class="headerlink" title="最后"></a>最后</h2><ul>
<li>本文和代码属于纯学习性质研究</li>
<li>如果你通过脚本抓取了类似的信息，资源请一定要符合《当地国家地区法律法规》的情况下使用。</li>
<li>北京第三区交通委提醒您：道路千万条，安全第一条。飙车一时爽，一直飙一直爽。</li>
</ul>
<h2 id="参考"><a href="#参考" class="headerlink" title="参考"></a>参考</h2><ol>
<li><a href="/go.html?u=https://blog.csdn.net/bitcarmanlee/article/details/51622263">@bitcarmanlee - python 两个list 求交集，并集，差集 - bitcarmanlee的博客 - CSDN博客</a></li>
<li><a href="/go.html?u=https://juejin.im/post/5bdad392e51d451c5b474a35">@Dwyane_Coding - Python爬取电影天堂 - 掘金</a></li>
<li><a href="/go.html?u=http://www.runoob.com/python3/python3-string-startswith.html">Python3 startswith()方法 | 菜鸟教程</a></li>
<li><a href="/go.html?u=https://2.python-requests.org//zh_CN/latest/user/advanced.html#proxies">高级用法 — Requests 2.18.1 文档</a></li>
</ol>

    </div>

    
    
    

    <footer class="post-footer">
          <div class="post-tags">
              <a href="/tags/%E7%BC%96%E7%A0%81/" rel="tag"># 编码</a>
              <a href="/tags/%E7%88%AC%E8%99%AB/" rel="tag"># 爬虫</a>
              <a href="/tags/%E8%B5%8C%E5%9C%BA/" rel="tag"># 赌场</a>
              <a href="/tags/%E5%B2%9B%E5%9B%BD/" rel="tag"># 岛国</a>
              <a href="/tags/%E5%8A%A8%E4%BD%9C%E7%89%87/" rel="tag"># 动作片</a>
          </div>

        

          <div class="post-nav">
            <div class="post-nav-item">
                <a href="/post/20190708-pythonpaqudianyingtiantang/" rel="prev" title="python爬取电影天堂">
                  <i class="fa fa-chevron-left"></i> python爬取电影天堂
                </a>
            </div>
            <div class="post-nav-item">
                <a href="/post/20190718-hexoxiavalineguanbijingzhimougewenzhangyemianpinglun/" rel="next" title="hexo下valine关闭禁止某个文章页面评论">
                  hexo下valine关闭禁止某个文章页面评论 <i class="fa fa-chevron-right"></i>
                </a>
            </div>
          </div>
    </footer>
  </article>
</div>






    
  <div class="comments" id="disqus_thread">
    <noscript>Please enable JavaScript to view the comments powered by Disqus.</noscript>
  </div>
  
</div>
  </main>

  <footer class="footer">
    <div class="footer-inner">


<div class="copyright">
  &copy; 
  <span itemprop="copyrightYear">2024</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">JackCh3n</span>
</div>
<div class="busuanzi-count">
    <span class="post-meta-item" id="busuanzi_container_site_uv">
      <span class="post-meta-item-icon">
        <i class="fa fa-user"></i>
      </span>
      <span class="site-uv" title="Total Visitors">
        <span id="busuanzi_value_site_uv"></span>
      </span>
    </span>
    <span class="post-meta-item" id="busuanzi_container_site_pv">
      <span class="post-meta-item-icon">
        <i class="fa fa-eye"></i>
      </span>
      <span class="site-pv" title="Total Views">
        <span id="busuanzi_value_site_pv"></span>
      </span>
    </span>
</div>
  <div class="powered-by">Powered by <a href="https://hexo.io/" rel="noopener" target="_blank">Hexo</a> & <a href="https://theme-next.js.org/" rel="noopener" target="_blank">NexT.Gemini</a>
  </div>
    <br/>Powerful CDN service provided by 
  <a target="_blank" rel="noopener" href="https://www.upyun.com/?utm_source=lianmeng&utm_medium=referral" style="border:none"><img src="https://www.wulihub.com.cn/gc/Wez0VG/images/upyun_logo.png" height="66" style="display: list-item;" alt="upyun"></a> 
  <a target="_blank" rel="noopener" href="https://www.jsdelivr.com" style="border:none"><img src="https://www.wulihub.com.cn/gc/Wez0VG/images/jsdelivr_logo.svg" height="50" style="display: list-item;" alt="JsDelivr"></a>
  <p>
  <br/><a target="_blank" rel="noopener" href="https://pages.github.com/?f=nobige">Github Pages</a>&nbsp;&nbsp;<a target="_blank" rel="noopener" href="https://vercel.com/?f=nobige">Vercel</a>&nbsp;&nbsp;<a target="_blank" rel="noopener" href="https://www.netlify.com/?f=nobige">Netlify</a>&nbsp;&nbsp;<a target="_blank" rel="noopener" href="https://coding.net/?f=nobige">coding</a>&nbsp;&nbsp;provides static publishing
  </p>

    </div>
  </footer>

  
  <script src="https://npm.elemecdn.com/animejs@3.2.1/lib/anime.min.js" integrity="sha256-XL2inqUJaslATFnHdJOi9GfQ60on8Wx1C2H8DYiN1xY=" crossorigin="anonymous"></script>
<script src="https://www.wulihub.com.cn/gc/Wez0VG/js/comments.js"></script><script src="https://www.wulihub.com.cn/gc/Wez0VG/js/utils.js"></script><script src="https://www.wulihub.com.cn/gc/Wez0VG/js/motion.js"></script><script src="https://www.wulihub.com.cn/gc/Wez0VG/js/next-boot.js"></script>

  
<script src="https://npm.elemecdn.com/hexo-generator-searchdb@1.4.0/dist/search.js" integrity="sha256-vXZMYLEqsROAXkEw93GGIvaB2ab+QW6w3+1ahD9nXXA=" crossorigin="anonymous"></script>
<script src="https://www.wulihub.com.cn/gc/Wez0VG/js/third-party/search/local-search.js"></script>





  
  <script async src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>




<link rel="stylesheet" href="https://npm.elemecdn.com/disqusjs@1.3.0/dist/disqusjs.css" integrity="sha256-GxdCIOyfxQ1OBfS99qAIJDoGK1ADuBsxhMTqXG82fAY=" crossorigin="anonymous">

<script class="next-config" data-name="disqusjs" type="application/json">{"enable":true,"api":"https://duosuo.nobige.cn/","apikey":"Kmo9kPwsir7ppp8tGpeGROCmUtW8tdZBOdBVowPC67xVfTS5uV1wr6s4kckvP95m","shortname":"nobige","js":{"url":"https://npm.elemecdn.com/disqusjs@1.3.0/dist/disqus.js","integrity":"sha256-LVaMHPQ2zLqOc5rXSAfr4d1PIkEGNLyyUTDNPZmTtUw="}}</script>
<script src="https://www.wulihub.com.cn/gc/Wez0VG/js/third-party/comments/disqusjs.js"></script>

</body>
</html>
